package com.steven.ourcontest.team.helper

import com.steven.ourcontest.login.helper.LoginController
import com.tencent.mmkv.MMKV

object TeamController {
    private val kv = MMKV.defaultMMKV()

    fun setTeamStatus(teamId: Long, status: Boolean) {
        kv.putBoolean("KEY_${LoginController.userId}_${teamId}", status)
    }

    fun getTeamStatus(teamId: Long): Boolean {
        return kv.getBoolean("KEY_${LoginController.userId}_${teamId}", false)
    }
}